﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    List<store.cyt369.com.models.PropertyEquipment> propertyEquipments = ViewBag.propertyEquipments as List<store.cyt369.com.models.PropertyEquipment>;
    List<store.cyt369.com.models.Store_PropertyEquipment> store_PropertyEquipments = ViewBag.storePropertyEquipments as List<store.cyt369.com.models.Store_PropertyEquipment>;
    store.cyt369.com.models.Store storeDetail = ViewBag.storeDetail as store.cyt369.com.models.Store;
}
<div class="des-middle w1200">
    <!-- 左边部分 -->
    <div class="Lcont fl">
        <div class="des-middle-box">
          
            <div class="des-middle-tenement">
                <h2>物业配套</h2>
                <hr>
                <div class="tenement">
                    @foreach (var propertyEquipment in propertyEquipments)
                    {
                        foreach (var store_PropertyEquipment in store_PropertyEquipments)
                        {
                            if(store_PropertyEquipment.PropertyEquipmentID == propertyEquipment.Id)
                            {
                                <div class="tenement_div">
                                    <img src="@string.Format("{0}/{1}",store.cyt369.com.utility.SystemSettingService.Instance.StoreInternalBucket.HttpURL,propertyEquipment.ImagePath)" value="true">
                                    <a>@propertyEquipment.Name</a>
                                </div>
                            }
                            else
                            {
                                <div class="tenement_div">
                                    <img src="@string.Format("{0}/{1}",store.cyt369.com.utility.SystemSettingService.Instance.StoreInternalBucket.HttpURL,propertyEquipment.ImagePath)" value="false">
                                    <a>@propertyEquipment.Name</a>
                                </div>
                            }
                        }
                    }
                  
                </div>
                <a></a>
            </div>
            <div class="">
                <h2>详细描述</h2>
                <a id="DetailDescription"></a>
            </div>
            <div class="">
                <h2>周边配套</h2>
                <div id="des-middle-map"></div>
                <input hidden type="text" class="des-middle-map-Latitude" value="@storeDetail.Latitude" />
                <input hidden type="text" class="des-middle-map-Longitude" value="@storeDetail.Longitude" />
            </div>
            <div class="">
                <h2>人流来源</h2>
                <hr>
                <a id="PeopleFlowSource"></a>
            </div>
            <div class="">
                <h2>周边商户</h2>
                <hr>
                <a id="SurroundingMerchants"></a>
            </div>
        </div>
    </div>
</div>